package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    /*
     * @author 孙有泽
     * @date 2025/2/27 20:44
     * @description 员工新增
     */
    void saveEmployee(EmployeeDTO employeeDTO);
    /*
     * @author 孙有泽
     * @date 2025/2/27 20:44
     * @description 员工列表
     */
    PageResult list(EmployeePageQueryDTO employeePageQueryDTO);
    /*
     * @author 孙有泽
     * @date 2025/2/27 21:55
     * @description 员工状态更新
     */

    void updateStaus(Integer status, Long id);
    /*
     * @author 孙有泽
     * @date 2025/2/28 9:31
     * @description 根据id查询员工
     */

    Employee getEmployeeById(Long id);

    /*
     * @author 孙有泽
     * @date 2025/2/28 9:36
     * @description 更改员工
     */
    void updateEmployee(EmployeeDTO employeeDTO);

}
